#ifndef TEXTURE_MANAGER_H
#define TEXTURE_MANAGER_H

#include <d3dx9.h>
#include <map>
#include <string>

class CTextureManager
{
private:
	typedef std::map<std::string,LPDIRECT3DTEXTURE9>::iterator TTextureIterator;

	static CTextureManager							*m_TextureManager;
	std::map<std::string,LPDIRECT3DTEXTURE9>		m_TextureMap;
public:
	CTextureManager();
	~CTextureManager();
	static CTextureManager * GetInstance();
	void CleanUp();
	LPDIRECT3DTEXTURE9 LoadTexture(const std::string &filename, LPDIRECT3DDEVICE9 Device);
};

#endif